<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="com.tz.hospital.entity.*, java.util.List "%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="/hospital_system/layui-v2.6.8/layui/css/layui.css"/>
<!-- 引入 layui.js -->
<script src="/hospital_system/layui-v2.6.8/layui/layui.js"></script>
<style type="text/css">
.e1{
text-align: center;
}
.e2{
margin-left:40%;
}
.e3{
margin-right:30%;
}
</style>
</head>
<body>
<%List<hospital_doctor> ly=(List)request.getAttribute("ly"); %>
<%List<hospital_emp> lb=(List)request.getAttribute("lb"); %>
<%List<hospital_class> lk=(List)request.getAttribute("lk"); %>
<%String work=(String)request.getAttribute("work"); %>
<%int worka=(int)request.getAttribute("worka"); %>
<div class="layui-text"><h1 class="e1 ">预约信息</h1></div>
</br>
<div class="layui-text">
    <div class="layui-row layui-col-space10">
      <div class="layui-panel">
        <div style="padding: 20px 60px;">
        
<div class="e1">
<h1><%=ly.get(0).getYsname() %></h1>
<h3><%=ly.get(0).getYspost() %>	</h3>
		</div>
      </div>   
    </div>
   </div>
  </div>
  <div class="layui-text">
    <div class="layui-row layui-col-space10">
      <div class="layui-panel">
        <div style="padding: 10px 40px;">
        	
<div class="e2">预约科室：————————<%=lk.get(0).getKsname() %></br>
</br>
预约时间：————————<%=work %></br>
</br>
门诊类型：————————<%if(ly.get(0).getYslevel()==0){%>
普通
<%}else{ %>
专家
<%} %></br>
</br>
挂号费：————————<%=ly.get(0).getYsmoney() %>元</br>
</br>
     </div>
    </div>
   </div>
  </div>
 </div>
<div class="layui-text">
<div class="layui-row layui-col-space10">
<div class="layui-panel">
        <div style="padding: 10px 60px;">
        <div class="e1">
        <h5>就诊人：</h5><h2><%=lb.get(0).getBrName() %>  <%=lb.get(0).getBrtelephone() %></h2>
		</div>
      </div>   
    </div>
   </div>
  </div>
 </br>
</br>
<div class="layui-btn-container e1">
<button class="layui-btn layui-btn-radius" onclick="tj()">确认预约</button>
<el-button class="layui-btn layui-btn-radius layui-btn-primary" @click="$router.back()">我再想想</el-button>
</div>
<script type="text/javascript">
    function tj(){
    	
    	console.log(<%=work%>);
    	location.href="/hospital_system/insertListController?ksid="+<%=lk.get(0).getKsid() %>+"&ysid="+<%=ly.get(0).getYsid()%>+"&brid="+<%=lb.get(0).getBrid()%>+"&work="+<%=worka%>;
    }
    
    </script>
</body>
</html>